authChangePassword
Change password
/auth/change-password
Usage and SDK Samples
curl -X POST \
\
-H "Accept: application/json" \
-H "Content-Type: application/json" \
"https://api.domainflow.dev/api/v2/auth/change-password" \
-d ''
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.AuthApi;
import java.io.File;
import java.util.*;
public class AuthApiExample {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
// Configure API key authorization: cookieAuth
ApiKeyAuth cookieAuth = (ApiKeyAuth) defaultClient.getAuthentication("cookieAuth");
cookieAuth.setApiKey("YOUR API KEY");
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookieAuth.setApiKeyPrefix("Token");
// Create an instance of the API class
AuthApi apiInstance = new AuthApi();
AuthChangePasswordRequest authChangePasswordRequest = ; // AuthChangePasswordRequest |
try {
auth_logout_200_response result = apiInstance.authChangePassword(authChangePasswordRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#authChangePassword");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final AuthChangePasswordRequest authChangePasswordRequest = new AuthChangePasswordRequest(); // AuthChangePasswordRequest |
try {
final result = await api_instance.authChangePassword(authChangePasswordRequest);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->authChangePassword: $e\n');
}
import org.openapitools.client.api.AuthApi;
public class AuthApiExample {
public static void main(String[] args) {
AuthApi apiInstance = new AuthApi();
AuthChangePasswordRequest authChangePasswordRequest = ; // AuthChangePasswordRequest |
try {
auth_logout_200_response result = apiInstance.authChangePassword(authChangePasswordRequest);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling AuthApi#authChangePassword");
e.printStackTrace();
}
}
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure API key authorization: (authentication scheme: cookieAuth)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"domainflow_session"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"domainflow_session"];
// Create an instance of the API class
AuthApi *apiInstance = [[AuthApi alloc] init];
AuthChangePasswordRequest *authChangePasswordRequest = ; //
// Change password
[apiInstance authChangePasswordWith:authChangePasswordRequest
completionHandler: ^(auth_logout_200_response output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var DomainFlowApi = require('domain_flow_api');
var defaultClient = DomainFlowApi.ApiClient.instance;
// Configure API key authorization: cookieAuth
var cookieAuth = defaultClient.authentications['cookieAuth'];
cookieAuth.apiKey = "YOUR API KEY";
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//cookieAuth.apiKeyPrefix['domainflow_session'] = "Token";
// Create an instance of the API class
var api = new DomainFlowApi.AuthApi()
var authChangePasswordRequest = ; // {AuthChangePasswordRequest}
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.authChangePassword(authChangePasswordRequest, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class authChangePasswordExample
{
public void main()
{
// Configure API key authorization: cookieAuth
Configuration.Default.ApiKey.Add("domainflow_session", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.ApiKeyPrefix.Add("domainflow_session", "Bearer");
// Create an instance of the API class
var apiInstance = new AuthApi();
var authChangePasswordRequest = new AuthChangePasswordRequest(); // AuthChangePasswordRequest |
try {
// Change password
auth_logout_200_response result = apiInstance.authChangePassword(authChangePasswordRequest);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling AuthApi.authChangePassword: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Configure API key authorization: cookieAuth
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('domainflow_session', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('domainflow_session', 'Bearer');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\AuthApi();
$authChangePasswordRequest = ; // AuthChangePasswordRequest |
try {
$result = $api_instance->authChangePassword($authChangePasswordRequest);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling AuthApi->authChangePassword: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::AuthApi;
# Configure API key authorization: cookieAuth
$WWW::OPenAPIClient::Configuration::api_key->{'domainflow_session'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'domainflow_session'} = "Bearer";
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::AuthApi->new();
my $authChangePasswordRequest = WWW::OPenAPIClient::Object::AuthChangePasswordRequest->new(); # AuthChangePasswordRequest |
eval {
my $result = $api_instance->authChangePassword(authChangePasswordRequest => $authChangePasswordRequest);
print Dumper($result);
};
if ($@) {
warn "Exception when calling AuthApi->authChangePassword: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: cookieAuth
openapi_client.configuration.api_key['domainflow_session'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['domainflow_session'] = 'Bearer'
# Create an instance of the API class
api_instance = openapi_client.AuthApi()
authChangePasswordRequest = # AuthChangePasswordRequest |
try:
# Change password
api_response = api_instance.auth_change_password(authChangePasswordRequest)
pprint(api_response)
except ApiException as e:
print("Exception when calling AuthApi->authChangePassword: %s\n" % e)
extern crate AuthApi;
pub fn main() {
let authChangePasswordRequest = ; // AuthChangePasswordRequest
let mut context = AuthApi::Context::default();
let result = client.authChangePassword(authChangePasswordRequest, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| authChangePasswordRequest * |